package com.szholly.plug.cms.entity.content;

import com.szholly.data.general.*;

/**
 *  内容的附件
 */
public class ContentAttachmentRow extends RowBase {

	private static final long serialVersionUID = 1L;

	/**
	 * 下载次数
	 */
	public final static String FIELD_DownloadCount = "download_count";
	
	/**
	 * content_id
	 */
	public final static String FIELD_ContentId = "content_id";
	
	/**
	 * 附件名称
	 */
	public final static String FIELD_AttachmentName = "attachment_name";
	
	/**
	 * 排列顺序
	 */
	public final static String FIELD_Priority = "priority";
	
	/**
	 * 文件名
	 */
	public final static String FIELD_Filename = "filename";
	
	/**
	 * 附件路径
	 */
	public final static String FIELD_AttachmentPath = "attachment_path";
	
	
	
	/**
	 * 获取下载次数
	 */
	public Integer getDownloadCount() {
		return (Integer) getValue(GlobalDataType.Int32, FIELD_DownloadCount);
	}

	/**
	 * 设置下载次数
	 */
	public void setDownloadCount(Integer value) {
		setValue(FIELD_DownloadCount, value);
	}
	
	/**
	 * 获取content_id
	 */
	public Integer getContentId() {
		return (Integer) getValue(GlobalDataType.Int32, FIELD_ContentId);
	}

	/**
	 * 设置content_id
	 */
	public void setContentId(Integer value) {
		setValue(FIELD_ContentId, value);
	}
	
	/**
	 * 获取附件名称
	 */
	public String getAttachmentName() {
		return (String) getValue(GlobalDataType.String, FIELD_AttachmentName);
	}

	/**
	 * 设置附件名称
	 */
	public void setAttachmentName(String value) {
		setValue(FIELD_AttachmentName, value);
	}
	
	/**
	 * 获取排列顺序
	 */
	public Integer getPriority() {
		return (Integer) getValue(GlobalDataType.Int32, FIELD_Priority);
	}

	/**
	 * 设置排列顺序
	 */
	public void setPriority(Integer value) {
		setValue(FIELD_Priority, value);
	}
	
	/**
	 * 获取文件名
	 */
	public String getFilename() {
		return (String) getValue(GlobalDataType.String, FIELD_Filename);
	}

	/**
	 * 设置文件名
	 */
	public void setFilename(String value) {
		setValue(FIELD_Filename, value);
	}
	
	/**
	 * 获取附件路径
	 */
	public String getAttachmentPath() {
		return (String) getValue(GlobalDataType.String, FIELD_AttachmentPath);
	}

	/**
	 * 设置附件路径
	 */
	public void setAttachmentPath(String value) {
		setValue(FIELD_AttachmentPath, value);
	}
}